package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the COURSEARRANGEMENT database table.
 * 
 */
@Entity
@NamedQuery(name="Coursearrangement.findAll", query="SELECT c FROM Coursearrangement c")
public class Coursearrangement implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="COURSEARRANGEMENT_COURSEAID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="COURSEARRANGEMENT_COURSEAID_GENERATOR")
	@Column(name="COURSEA_ID")
	private long courseaId;

	@Column(name="COURSEA_MAKEUP")
	private BigDecimal courseaMakeup;

	@Column(name="COURSEA_QUALIFIEDSCORE")
	private BigDecimal courseaQualifiedscore;

	@Column(name="COURSEA_STATE")
	private BigDecimal courseaState;

	@Column(name="COURSEA_TESTSCORES")
	private BigDecimal courseaTestscores;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	//bi-directional many-to-one association to Traininggactivity
	@ManyToOne
	@JoinColumn(name="TRAINING_ID")
	private Traininggactivity traininggactivity;

	public Coursearrangement() {
	}

	public long getCourseaId() {
		return this.courseaId;
	}

	public void setCourseaId(long courseaId) {
		this.courseaId = courseaId;
	}

	public BigDecimal getCourseaMakeup() {
		return this.courseaMakeup;
	}

	public void setCourseaMakeup(BigDecimal courseaMakeup) {
		this.courseaMakeup = courseaMakeup;
	}

	public BigDecimal getCourseaQualifiedscore() {
		return this.courseaQualifiedscore;
	}

	public void setCourseaQualifiedscore(BigDecimal courseaQualifiedscore) {
		this.courseaQualifiedscore = courseaQualifiedscore;
	}

	public BigDecimal getCourseaState() {
		return this.courseaState;
	}

	public void setCourseaState(BigDecimal courseaState) {
		this.courseaState = courseaState;
	}

	public BigDecimal getCourseaTestscores() {
		return this.courseaTestscores;
	}

	public void setCourseaTestscores(BigDecimal courseaTestscores) {
		this.courseaTestscores = courseaTestscores;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

	public Traininggactivity getTraininggactivity() {
		return this.traininggactivity;
	}

	public void setTraininggactivity(Traininggactivity traininggactivity) {
		this.traininggactivity = traininggactivity;
	}

}